import java.util.Date;


public class GetAllCoursesTest extends AbstractTestCase {
	
	private static final UniManager um = UniManager.instance;
	private static final CourseFactory cf = CourseFactory.instance;

	public void setUp() throws Exception {
		um.addCourse(cf.createCourse("c1"));
		um.addCourse(cf.createCourse("c2"));
		um.addCourse(cf.createCourse("c3"));
		um.addCourse(cf.createCourse("c4"));
	}

	public void tearDown() throws Exception {
	}

	public void test() throws Exception {
		this.setUp();
		System.out.println("--------------------------------------");
		System.out.println("Start of GetAllCoursesTest: " + TIME_FORMATTER.format(new Date()));
		System.out.println();
		
		String result = um.getAllCoursesAsString();
		System.out.println("All courses fethed as String with result:\n");
		System.out.println(result);

		System.out.println("End of GetAllCoursesTest: " + TIME_FORMATTER.format(new Date()));
		System.out.println("--------------------------------------");
		this.tearDown();
	}

}
